package com.fdq.dianping.mapper;

import com.fdq.dianping.entity.ShopComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fdq
 * @since 2025-01-25
 */
public interface ShopCommentMapper extends BaseMapper<ShopComment> {
    @Select("""
            SELECT * FROM dp_shop_comment
                WHERE create_time >= #{startDate}
                  AND create_time < #{endDate}""")
    public List<ShopComment> selectByDateRange(String startDate, String endDate);
}
